package com.wcs.exam.controller.admin.resp;

import com.wcs.exam.common.base.annotation.SchemaEnum;
import com.wcs.exam.common.enums.MenuTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 菜单信息
 *
 * @author wcs
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-菜单角色关联表-用户-响应对象")
public class AdminSysMenuUserResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "父ID")
    private Long parentId;

    @Schema(description = "排序")
    private Integer sort;

    @SchemaEnum(value = MenuTypeEnum.class)
    private Integer menuType;

    @Schema(description = "菜单名称")
    private String menuName;

    @Schema(description = "菜单名称")
    private String menuIcon;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "权限标识")
    private String permission;

    private List<AdminSysMenuUserResp> children;
}
